#include "BubbleTipsButton.h"
#include<QPainter>
BubbleTipsButton::BubbleTipsButton(QWidget *parent)
	: QToolButton(parent)
{
	isShowTips = false;
}

BubbleTipsButton::~BubbleTipsButton()
{
}

void BubbleTipsButton::paintEvent(QPaintEvent* paintEvt)
{
	QToolButton::paintEvent(paintEvt);
	if (isShowTips)
	{

		QPainter painter(this);
		QRect tipRect(size().width()-25,6,12,12);
		painter.setBrush(QColor(244, 84, 84));
		painter.drawEllipse(tipRect);
		/*painter.setPen(QColor(255, 255, 255));
		QTextOption textOpt;
		textOpt.setAlignment(Qt::AlignCenter);
		QFont font;
		font.setPixelSize(12);
		painter.setFont(font);
		painter.drawText(tipRect, tipsContent, textOpt);*/
	}
}
